//
//  HWShimingrenzhengCell.m
//  HWanGame
//
//  Created by 陈道斌 on 2019/10/28.
//  Copyright © 2019 Chendaobin. All rights reserved.
//

#import "HWShimingrenzhengCell.h"

@implementation HWShimingrenzhengCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
     
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self setupUI];
        
    }
    return  self;
}
// 设置UI
- (void)setupUI {
    
       self.nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(15, 0, 200, 40)];
       self.nameLabel.font = [UIFont systemFontOfSize:14];
       self.nameLabel.textColor = RGB(51, 51, 51);
       self.nameLabel.text = @"真实姓名";
       [self.contentView addSubview:self.nameLabel];
    
      self.icoimageView = [[UIImageView alloc]initWithFrame:CGRectMake(kScreenW-6-15, 15, 6, 10.5)];
      self.icoimageView.image = [UIImage imageNamed:@"backxiayibu"];
     [self.contentView addSubview:self.icoimageView];
    
    
      self.fenxianView = [[UIView alloc]initWithFrame:CGRectMake(0, 39, kScreenW, 1)];
      self.fenxianView.backgroundColor = xiatiaoyanSehui;
      [self.contentView addSubview:self.fenxianView];
    
        self.shengFenLabel = [[UILabel alloc]initWithFrame:CGRectMake(kScreenW -200-15, 0, 200, 39)];
        self.shengFenLabel.font = [UIFont systemFontOfSize:12];
        self.shengFenLabel.textColor = RGB(51, 51, 51);
        self.shengFenLabel.text = @"身份证";
       self.shengFenLabel.textAlignment  = NSTextAlignmentRight;
        [self.contentView addSubview:self.shengFenLabel];

    
    
     self.nameTextField = [[UITextField alloc]initWithFrame:CGRectMake(kScreenW-200-15-7-6, 0, 200, 39)];
//      self.nameTextField.placeholder = @"请选择游戏";
     // self.nameTextField.
      
      NSMutableAttributedString *attrString = [[NSMutableAttributedString alloc] initWithString:@"请填写真实姓名" attributes:
           @{NSForegroundColorAttributeName:RGB(153, 153, 153),
             NSFontAttributeName:[UIFont boldSystemFontOfSize:12]}
           ];
      self.nameTextField.attributedPlaceholder  = attrString;
      
      self.nameTextField.font = [UIFont systemFontOfSize:12];
      self.nameTextField.textAlignment = NSTextAlignmentRight;
      self.nameTextField.textColor = RGB(51, 51, 51);
    
      
      [self.contentView addSubview:self.nameTextField];
      
     
    
}

@end
